<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>配送商补货</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="-598295969">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "-598295969";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("replenish.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建配送商补货"
  			,"inport":"导入配送商补货"
  			,"update":"修改配送商补货"
  			,"detail":"配送商补货详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#replenishForm").form({
		"":function(){}
		,"replenish.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"replenish.merchant":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"replenish.distributor":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"replenish.logisticsNumber":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "物流单号最大长度为32个字符";
		}
		,"replenish.remarks":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "备注最大长度为32个字符";
		}
		,"replenish.replenishment":function(el){
		}
		,"replenish.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"replenish.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"replenish.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="Replenish" id="replenishForm" name="replenishForm" target="jsoniframe" action="replenish.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写配送商补货相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("id_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"id"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{replenish$id}}">
				{{replenish$id}}
			</lz:block>
			<lz:block lz:if="{{!replenish$id}}">
			<input type="hidden" value="{{lz.htm(replenish.id)}}" name="replenish.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{replenish.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenish.id$||replenish.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
	{{lz.set("merchant_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"merchant"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"merchant"))))}}
	{{lz.set("merchant_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$merchant}}
	<dl lz:if="{{merchant_editable||merchant_readonly}}" class="merchant  " major  ref="merchant">
		<dt>品 牌 商:</dt>
		<dd lz:if="{{merchant_editable}}" input="query">
			<lz:block lz:if="{{replenish$merchant}}">
				{{replenish$merchant}}
			</lz:block>
			<lz:block lz:if="{{!replenish$merchant}}">
		 			<input title="请输入品牌信息品牌名称进行查询" class="combox narrow" action="/admin/business/merchant.query.do?value={param}" type="text" id="merchant" name="replenish.merchant" text="{{lz.html(replenish.merchant$||replenish.merchant)}}" value="{{lz.htm(replenish.merchant)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#merchant').val())==''){return;};window.href('/admin/business/merchant.detail.html?key='+$('#merchant').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{merchant_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="merchant">{{replenish.merchant}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/business/merchant.details.html?key=replenish.merchant}')">
			 {{lz.html(replenish.merchant$||replenish.merchant)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$merchant}}
	{{lz.set("distributor_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"distributor"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"distributor"))))}}
	{{lz.set("distributor_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$distributor}}
	<dl lz:if="{{distributor_editable||distributor_readonly}}" class="distributor  " major  ref="distributor">
		<dt>配 送 商:</dt>
		<dd lz:if="{{distributor_editable}}" input="query">
			<lz:block lz:if="{{replenish$distributor}}">
				{{replenish$distributor}}
			</lz:block>
			<lz:block lz:if="{{!replenish$distributor}}">
		 			<input title="请输入配送商信息手机号进行查询" class="combox narrow" action="/admin/delivery/distributor.query.do?value={param}" type="text" id="distributor" name="replenish.distributor" text="{{lz.html(replenish.distributor$||replenish.distributor)}}" value="{{lz.htm(replenish.distributor)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#distributor').val())==''){return;};window.href('/admin/delivery/distributor.detail.html?key='+$('#distributor').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{distributor_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="distributor">{{replenish.distributor}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/delivery/distributor.details.html?key=replenish.distributor}')">
			 {{lz.html(replenish.distributor$||replenish.distributor)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$distributor}}
	{{lz.set("logisticsNumber_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"logisticsNumber"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"logisticsNumber"))))}}
	{{lz.set("logisticsNumber_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$logisticsNumber}}
	<dl lz:if="{{logisticsNumber_editable||logisticsNumber_readonly}}" class="ribs logisticsNumber  " major  ref="logisticsNumber">
		<dt>物流单号:</dt>
		<dd lz:if="{{logisticsNumber_editable}}" input="text">
			<lz:block lz:if="{{replenish$logisticsNumber}}">
				{{replenish$logisticsNumber}}
			</lz:block>
			<lz:block lz:if="{{!replenish$logisticsNumber}}">
		 	<input type="text" class="input narrow"   name="replenish.logisticsNumber" id="logisticsNumber"  value="{{lz.htm(replenish.logisticsNumber)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入配送商补货的物流单号</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{logisticsNumber_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="logisticsNumber">{{replenish.logisticsNumber}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenish.logisticsNumber$||replenish.logisticsNumber)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$logisticsNumber}}
	{{lz.set("replenishments_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"replenishments"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"replenishments"))))}}
	{{lz.set("replenishments_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$replenishments}}
	<dl lz:if="{{replenishments_editable||replenishments_readonly}}" class="ribs replenishments   wider" minor  ref="replenishments">
		<dt>补货明细:</dt>
		<dd lz:if="{{replenishments_editable}}" input="grid">
			<lz:block lz:if="{{replenish$replenishments}}">
				{{replenish$replenishments}}
			</lz:block>
			<lz:block lz:if="{{!replenish$replenishments}}">
		 	<textarea class="input wide grid" grid="[
		    	['编号',140,'hidden','id',null,null,'{{replenish.id?'editable':'editable'}}'],
		    	['备注',140,'textarea','remarks',null,null,'{{replenish.id?'editable':'editable'}}'],
		    	['规格属性',40,'text','attribute',null,null,'{{replenish.id?'editable':'editable'}}'],
		    	['单位',40,'text','company',null,null,'{{replenish.id?'editable':'editable'}}'],
		    	['已补货',66,'number','count',null,null,'{{replenish.id?'editable':'editable'}}'],
		    	['已配出',66,'number','matchOut',null,null,'{{replenish.id?'editable':'editable'}}'],
		    	['还欠',66,'number','owe',null,null,'{{replenish.id?'editable':'editable'}}'],
		    	['补货商品',100,'query','commodity','/admin/goods/commodity.query.do?size=255',null,'{{replenish.id?'editable':'editable'}}'],
		    	['修改时间',120,'datetime','updateTime',null,null,'{{replenish.id?'none':'none'}}'],
		    	['添加时间',120,'datetime','addTime',null,null,'{{replenish.id?'none':'none'}}'],
		    	['状态',100,'select','status',[{'text':'正常','value':'1'},{'text':'无效','value':'0'},],null,'{{replenish.id?'editable':'none'}}'],
		    ]" id="replenishments" name="replenish.replenishments">{{replenish.replenishments}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{replenishments_readonly}}">
		 	<div class=" wide">
		 		<textarea class=""  style="display:none;" id="replenishments">{{replenish.replenishments}}</textarea>
		 		<span>
			<textarea class="input wide grid" grid="[
		    	['备注',null,'textarea','remarks','']
		    	,['规格属性',null,'text','attribute','']
		    	,['单位',null,'text','company','']
		    	,['已补货',null,'number','count','']
		    	,['已配出',null,'number','matchOut','']
		    	,['还欠',null,'number','owe','']
		    	,['补货商品',null,'query','commodity','/admin/goods/commodity.query.do?']
		    	,['状态',null,'select','status',[{'text':'正常','value':'1'},{'text':'无效','value':'0'}]]
		    ]" readonly>{{replenish.replenishments}}</textarea>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$replenishments}}
	{{lz.set("remarks_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"remarks"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"remarks"))))}}
	{{lz.set("remarks_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$remarks}}
	<dl lz:if="{{remarks_editable||remarks_readonly}}" class="ribs remarks  " major  ref="remarks">
		<dt>备　　注:</dt>
		<dd lz:if="{{remarks_editable}}" input="text">
			<lz:block lz:if="{{replenish$remarks}}">
				{{replenish$remarks}}
			</lz:block>
			<lz:block lz:if="{{!replenish$remarks}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="replenish.remarks" id="remarks"  value="{{lz.htm(replenish.remarks)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入配送商补货的备注</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{remarks_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="remarks">{{replenish.remarks}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenish.remarks$||replenish.remarks)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$remarks}}
	{{lz.set("replenishment_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"replenishment"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"replenishment"))))}}
	{{lz.set("replenishment_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$replenishment}}
	<dl lz:if="{{replenishment_editable||replenishment_readonly}}" class="replenishment  " major  ref="replenishment">
		<dt>补货时间:</dt>
		<dd lz:if="{{replenishment_editable}}" input="datetime">
			<lz:block lz:if="{{replenish$replenishment}}">
				{{replenish$replenishment}}
			</lz:block>
			<lz:block lz:if="{{!replenish$replenishment}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="replenish.replenishment" id="replenishment"  value="{{replenish.replenishment$}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请选择配送商补货的补货时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{replenishment_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="replenishment">{{replenish.replenishment}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenish.replenishment$||replenish.replenishment)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$replenishment}}
	{{lz.set("updateTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"updateTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="datetime">
			<lz:block lz:if="{{replenish$updateTime}}">
				{{replenish$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!replenish$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="replenish.updateTime" id="updateTime"  value="{{replenish.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择配送商补货的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{replenish.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenish.updateTime$||replenish.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
	{{lz.set("addTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"addTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="datetime">
			<lz:block lz:if="{{replenish$addTime}}">
				{{replenish$addTime}}
			</lz:block>
			<lz:block lz:if="{{!replenish$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="replenish.addTime" id="addTime"  value="{{replenish.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择配送商补货的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{replenish.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenish.addTime$||replenish.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
	{{lz.set("status_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"status"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{replenish$status}}">
				{{replenish$status}}
			</lz:block>
			<lz:block lz:if="{{!replenish$status}}">
		 	<select class="narrow" id="status" name="replenish.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{replenish.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{replenish.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择配送商补货的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{replenish.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenish.status$||replenish.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{replenish.id}}" name="replenish.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/delivery/replenish.edit.html?edittype=update&id={{replenish.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/delivery/replenish.edit.html",document.title,"/admin//images/icons/Badge-plus.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/delivery/replenish.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


</script>
</html>